TAGs: convert linear equations